/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tmd;



import java.sql.Timestamp;

import config.ConfigurationsFile;

import renamer.Run;



/**
 *
 * @author lopesdasilva
 */
public class TMD {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		new TMD().test();
	}

	private void test() {
		Timestamp time = new Timestamp(System.currentTimeMillis()); 
		
		
		/*
		 * 
		 * 1 Load Config
		 * 2 Load/Create Database file
		 * 3 Star Runtime
		    * 4 Scrappe torrentbutler
		 	* 5 Filter Movie List and Filter TorrentList
		 	* 6 Download Torrent 
		 	* 7 Add Movie to database
		 * 
		 */
		//vars
		ConfigurationsFile config ;


		//1 Load Config
		int year=2010;
		double rating =7.0;
		int minSeeders=500;
		int minSize=600;
		config = new ConfigurationsFile(year,rating,minSeeders,minSize);
		
		//2
		
		
		//3 Start Runtime
		new Run().run(time,config);
		
		


//		WGETJava.DownloadFile(new URL("http://torrentbutler.eu/latest"),"tblastest.xml");
			//	WGETJava.DownloadFile(new URL(""),);
			//		new parsers.movieParser().parse("http://torrentbutler.eu/47327-drive-angry");
	}
}

